const express = require( 'express' );
const router = express.Router();
const project = require( "../../../controllers/project.controller" );
/**
 * 查询项目信息列表
 * @route POST /api/private/project/list
 * @group 项目管理 - list of project
 * @param {object} query - 请按固定查询规范
 * @returns {object} 200 - An array of project info
 * @returns {object} 605 - 请求失败
 * @returns {Error}  default - Unexpected error
 */

router.post( "/list", project.list );


/**
 * 创建项目信息
 * @route POST /api/private/project/create
 * @group 项目管理 - Operations about project
 * @returns {object} 200 - An array of project info
 * @returns {object} 605 - 请求失败
 * @returns {Error}  default - Unexpected error
 */

router.post( "/create", project.create );



/**
 * 修改项目信息
 * @route POST /api/private/project/update
 * @group 项目管理 - Operations about project
 * @returns {object} 200 - An array of project info
 * @returns {object} 605 - 请求失败
 * @returns {Error}  default - Unexpected error
 */

router.post( "/update", project.update );


/**
 * 删除项目信息
 * @route POST /api/private/project/delete
 * @group 项目管理 - Operations about project
 * @returns {object} 200 - An array of project info
 * @returns {object} 605 - 请求失败
 * @returns {Error}  default - Unexpected error
 */

router.post( "/delete", project.delete );
module.exports = router;